package com.medium.house.repository;


import com.medium.house.entity.HousePointRef;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface HousePointRefMapper {
    String[] ORDERBY = {"created_at", "updated_at"};
    String[] ORDER = {"desc", "asc"};

    int deleteByPrimaryKey(long id);

    int insert(HousePointRef record);

    int insertSelective(HousePointRef record);

    HousePointRef selectByPrimaryKey(long id);

    int updateByPrimaryKeySelective(HousePointRef record);

    int updateByPrimaryKey(HousePointRef record);

    List<HousePointRef> selectByPage(
            @Param("start") int start,
            @Param("limit") int limit,
            @Param("orderby") String orderby,
            @Param("order") String order,
            @Param("param") Map<String, Object> args);

    List<Long> selectIdsByPage(
            @Param("start") int start,
            @Param("limit") int limit,
            @Param("orderby") String orderby,
            @Param("order") String order,
            @Param("param") Map<String, Object> args);

    long count(@Param("param") Map<String, Object> args);
}